
#ifndef __DIM_SUM_RANDOM_H
#define __DIM_SUM_RANDOM_H

#define GRND_NONBLOCK	0x0001
#define GRND_RANDOM	0x0002

void rand_initialize(void);
void add_keyboard_randomness(unsigned char scancode);
void add_interrupt_randomness(int irq);
void get_random_bytes(void *buf, int nbytes);
int read_random(struct file *file,
		char *buf, int nbytes);
int read_random_unlimited(struct file *file,
			  char *buf, int nbytes);

#endif /* __DIM_SUM_RANDOM_H */
